package com.zwh.spring.demo.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogLevelController {
	
	private Logger logger = LoggerFactory.getLogger(LogLevelController.class);
	
	@RequestMapping("/loglevel")
	public String testLogLevel() {
		logger.debug("Logger Level: DEBUG");
		logger.info("Logger Level: INFO");
		logger.warn("Logger Level: WARN");
		logger.error("Logger Level: ERROR");
		
		return "";
	}
}
